package com.electricfan.service.impl;

import java.util.List;

import com.electricfan.bean.Product;
import com.electricfan.dao.IProductDao;
import com.electricfan.service.IProductService;

/**
 * 
 * @author Jolly
 * @date 2013-11-4 
 */
public class ProductServiceImpl implements IProductService
{

    private IProductDao productDao;

    @Override
    public List<Product> find(Product product)
    {
        return productDao.find(product);
    }

    @Override
    public Product findById(Integer id)
    {
        return productDao.findById(id);
    }

    public void setProductDao(IProductDao productDao)
    {
        this.productDao = productDao;
    }

}
